<!--  -->
<template>
  <el-breadcrumb :separator-icon="ArrowRight">
    <el-breadcrumb-item v-for="(item, index) in breadList" :key="item.path">
      <RouterLink to="/welcome" v-if="index === 0">{{ item.meta.title }}</RouterLink>
      <span v-else>{{ item.meta.title }}</span>
    </el-breadcrumb-item>
  </el-breadcrumb>
</template>

<script setup>
import { computed } from "vue";
import { useRoute } from "vue-router";

const route = useRoute();

const breadList = computed(() => {
  return route.matched;
});
</script>
<style lang="scss" scoped></style>
